// 引入layout的index组件
import Layout from '@/layout/index.vue'

export default {
  path: '/employees',
  component: Layout,
  children: [{
    path: '',
    name: 'employees',
    component: () => import('@/views/employees/index'),
    meta: { title: '员工管理', icon: 'people' }
  },
  // 员工详情页路由
  {
    path: '/employees/detail/:id',
    component: () => import('@/views/employees/detail.vue'),
    meta: { title: '员工详情' },
    hidden: true // 一级路由只能有一个,所以不展示的页面要加 hidden: true
  }
  ]
}
